<form action="{:url()}" method="post" class="form_single">
    <div class="box">
      <div class="box-body">
        <div class="row">
          <div class="col-md-6">
            <div class="form-group">
              <label>标题</label>
              <span class="">（广告标题名称）</span>
              <input class="form-control" name="title" placeholder="请输入广告标题名称" value="{$info['title']|default=''}" type="text">
            </div>
          </div>
            
          <div class="col-md-6">
            <div class="form-group">
              <label>分类</label>
              <span class="">（广告分类）</span>
                <select name="catid" class="form-control">
                    {volist name='ad_cat_list' id='vo'}
                        <option value="{$vo['id']}" {notempty name="info['catid']"}{if condition="$info['catid'] eq $vo['id']"} selected="selected" {/if}{/notempty} >{$vo['title']}</option>
                    {/volist}
                </select>
            </div>
          </div>
            <div class="col-md-6">
            <div class="form-group">
              <label>链接</label>
              <span class="">（广告链接）</span>
              <input class="form-control" name="url" placeholder="请输入广告链接" value="{$info['url']|default=''}" type="text">
            </div>
          </div> 
          <div class="col-md-6">
            <div class="form-group">
              <label>排序</label>
              <span class="">（广告排序）</span>
              <input class="form-control" name="sort" placeholder="请输入广告排序" value="{$info['sort']|default='0'}" type="text">
            </div>
          </div>  
          <div class="col-md-6">
            <div class="form-group">
                <label>图片</label>
                <span class="">（请上传单张封面图片）</span>
                <br/>
                {assign name="cover_id" value="$info.cover_id|default='0'" /}
                {:widget('file/index', ['name' => 'cover_id', 'value' => $cover_id, 'type' => 'img'])}
            </div>
          </div>
          </div>
        
      <div class="box-footer">
          
        <input type="hidden" name="id" value="{$info['id']|default='0'}"/>
        
        {include file="layout/edit_btn_group"/}
        
      </div>
        
      </div>
      </div>
</form>